<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddSumAndResultToWalletTransactionsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('wallet_transactions', function($table){
			$table->decimal('sum', 11, 2);					//金额
			$table->string('description', 30)->nullable()->defaults('');	// 类型
			$table->string('result', 30)->nullable()->defaults('');	// 类型
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
